# Description: Simple Authentication and Security Layer
# URL:         https://cyrusimap.org
# Maintainer: Abdullah Khan, ak at theak dot me
# Depends on: db openssl

name=cyrus-sasl
version=2.1.27
release=2
source=()

gitsource=https://github.com/cyrusimap/cyrus-sasl.git

build() {
    git clone $gitsource $name
    cd $name

   ./autogen.sh 
  ./configure \
    --prefix=/usr \
    --with-plugindir=/usr/lib/sasl2 \
    --with-saslauthd=/var/sasl/saslauthd \
    --with-dbpath=/etc/sasl/sasldb2 \
    --with-dblib=berkeley \
    --with-bdb-incdir=/usr/include \
    --with-bdb-libdir=/usr/lib \
    --with-openssl=/usr \
    --enable-login \
    --enable-cram \
    --enable-digest \
    --enable-shared

  make -j2
  make DESTDIR=$PKG install


}


# vim:set ft=sh ts=4 et:
